package com.sdd.sdr.provider;

import com.sdd.sdr.api.UserService;
import com.sdd.sdr.dto.UserAddDto;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;

/**
 * ClassName: UserServiceImpl
 * Description:
 * date: 2020/7/1
 *
 * @author xugaojun
 */
@Service
@Slf4j
public class UserServiceImpl implements UserService {


    @Override
    public String saveUser(UserAddDto dto) {
        log.info("==================saveUser, param[UserAddDto], {}", dto);
        return "====================== get userAddDto ====================";
    }

    @Override
    public UserAddDto getUser() {
        UserAddDto dto = new UserAddDto();
        dto.setUsername("openxgj");
        dto.setPassword("123456");

        return dto;
    }
}
